package com.suneee.store.dao;

import java.util.List;

import com.suneee.orm.Dao;
import com.suneee.store.entity.EnterpriseSpec;

public interface EnterpriseSpecDao extends Dao<EnterpriseSpec, Integer> {

	/**
	 * 通过规格id获取该企业的规格值
	 * @param specId
	 * @return
	 */
	public List<EnterpriseSpec> queryEnterpriseSpecBySpecId(Integer specId);
	
	/**
	 * 删除某规格下的所有规格值
	 * @param specIdList
	 */
	public void deleteEnterpriseSpecBySpecId(List<Integer> specIdList,String enterpriseCode);
	
	/**
	 * 通过specId、specValue获得对象
	 * @param enterpriseCode
	 * @param specId
	 * @param specValue
	 * @return
	 */
	public EnterpriseSpec getEnterpriseSpecByName(String enterpriseCode,Integer specId,String specValue);
}
